const TypeModel = require('../do/models/type');
class TypeService{
    async getType(id){
        if(!tid){
            return await TypeModel.findAll();
        }
        return await TypeModel.findOne({
            where:{
                id:id
            }
        })
    }
    async createType(data){
        return await TypeModel.create(data);
    }
}      
module.exports = new TypeService();